#include <iostream>
#include <cmath>
#include <cstdlib>
#include <string.h>
#include <algorithm> 
using namespace std;
int main()
{
   int n,a[1010],odd,even;
   while(cin>>n){
      odd=0;
      even=0;
      for(int i=0;i<n;i++)
      {  cin>>a[i];
         if(a[i]%2==0)  even++;
         else odd++;
      }
      if(even>odd)  cout<<"NO"<<endl;
      else cout<<"YES"<<endl;
   }
      
 //  system("pause");
   return 0;
}
      
      
